#include <bits/stdc++.h>
using namespace std;
// 注意 范围在1-1000 之间
// string a;
// stoi(a) == atoi(a.c_str())
int main()
{
    string s;
    getline(cin, s);
    string a = "";
    string b = "";
    bool split = false;
    bool fa = false;
    bool fb = false;
    for (int i = 0; i < s.length(); i++)
    {
        if (!split && s[i] == ' ')
        {
            split = true;
            continue;
        }
        if (!split)
        {
            if (!(s[i] >= '0' && s[i] <= '9'))
                fa = true;
            else
                a += s[i];
        }
        else
        {
            if (!(s[i] >= '0' && s[i] <= '9'))
                fb = true;
            else
                b += s[i];
        }
    }
    fa = stoi(a) <= 1000 && stoi(a) >= 1 ? fa : true;
    fb = stoi(b) <= 1000 && stoi(b) >= 1 ? fb : true;
    string A = fa ? "?" : to_string(stoi(a));
    string B = fb ? "?" : to_string(stoi(b));
    string C = !fa && !fb ? to_string(stoi(a) + stoi(b)) : "?";
    cout << A << " + " << B << " = " << C << endl;
    return 0;
}